/*
 * Java学习论坛
 * Copyright 2017 (C) All Rights Reserved.
 */
package cn.studyjava.verify.common;

/**
 * <p>
 * Description:
 * </p>
 * 
 * @author: zsljava
 * @version 1.0.0
 * <p>
 * History:
 * -----------------------------------------------
 * @Date: 2017年8月8日 下午12:46:55
 * @author: zsljava
 * @version 1.0.0
 * @OP: Create
 * -----------------------------------------------
 * </p>
 *
 * @since
 * @see
 */
public class Const {
	/**
	 * 默认生成100张图
	 */
	public static final int DEFAULT_GENERATE_SIZE = 100;
	
	/**
	 * 默认获取验证码后失效时间
	 */
	public static final int DEFAULT_VERIFY_TIME_SECONDS = 300;

	/**
	 * 验证失败
	 */
	public static final int VERIFY_STATUS_FAIL = 0;
	public static final String VERIFY_STATUS_FAIL_MSG = "失败";
//	public static final String VERIFY_STATUS_FAIL_MOVE = "请移动到对应的位置";
//	public static final String VERIFY_STATUS_FAIL_CODE_NOT_EXIST = "验证码已失效";
//	public static final String VERIFY_AUTH_FAIL_PARAMS_NOT_EMPTY = "authId、appId、timestamp、signature 不能为空";
//	public static final String VERIFY_AUTH_FAIL_APPID_NOT_EXIST = "appId错误";
//	public static final String VERIFY_AUTH_FAIL = "验证失败错误";
//	public static final String VERIFY_AUTH_FAIL_SIGNATURE = "signature 错误";
	
	/**
	 * 验证成功
	 */
	public static final int VERIFY_STATUS_SUCCESS = 1;
	
	public static final String VERIFY_STATUS_SUCCESS_MSG = "成功";

	/**
	 * 已经使用的验证码
	 */
	public static String REDIS_ALREADY_PREFIX = "already:";
	
	/**
	 * 存放验证码的redis set 集合
	 */
	public static String VERIFY_CODE_SET = "verify:code:set";
}
